from selenium.webdriver.common.by import By


class EditLocator:

    # 获取页面中央提示信息
    edit_center_Msg = (By.CSS_SELECTOR, '.bk-message')

    # 保存按钮
    edit_save_file = (By.CSS_SELECTOR, '.iconbaocun')

    # 页面导航栏的文件名
    edit_page_file_name = (By.CSS_SELECTOR, '.bk-resource-title p span[title]')

    # 文件编辑按钮
    edit_file_edit = (By.CSS_SELECTOR, '.icon-edit')

    # 页面logo
    edit_page_logo = (By.CSS_SELECTOR, '.bk-logo')

    # 客户端下载按钮
    edit_page_download = (By.CSS_SELECTOR, '[href="#/download"]')

    # 文件名输入框
    edit_page_input = (By.CSS_SELECTOR, 'el-input__inner')

    # 文件名提交
    edit_page_file_name_submit = (By.XPATH, "//a[contains(@class,'bk-item-ok')]//*[name()='svg']")
